<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>@yield('title')</title>

    {{--<link href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">--}}
    <link href="{{ asset('css/admin/base.css') }}" rel="stylesheet">
    <link href="{{ asset('css/admin/login.css') }}" rel="stylesheet">
</head>
<body>
<div class="container login-box">
    <div class="login-box-form">

        <form class="form-horizontal" action="" method="post">
            <img src="{{ asset('image/admin/login_logo.png') }}"  class="login-logo"/>
            {{csrf_field()}}
            <div class="form-group">
                <label class="login-name"><input type="text" name="name" class="form-control " id="inputEmail3" placeholder="用户名" /></label>
                <label class="login-password"><input type="password" name="password" class="form-control " id="inputPassword3" placeholder="密码" /></lable>
                <p><label><input type="checkbox" name="remeber" class="login-remember">记住我</label></p>
                @if (count($errors) > 0)
                    <div class="red">
                        <ul>
                            @if(is_object($errors))
                                @foreach($errors->all() as $error)
                                    <li>{{$error}}</li>
                                @endforeach
                            @else
                                <li>{{$errors}}</li>
                            @endif
                        </ul>
                    </div>
                @endif
                <button type="submit" class="btn btn-default">登录</button>
            </div>
        </form>
    </div>
</div>

</body>
</html>
